package com.ty.user.starter.entity.criteria;

import com.ty.user.starter.enums.LogTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;


/**
 * 注意: 此查询条件将过滤 {@link PageCriteria#getSearch()} 参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LogCriteria extends PageCriteria {
    private static final long serialVersionUID = -578880896901829067L;

    @ApiModelProperty("创建用户名称")
    @Length(max = 20, message = "用户名称长度不能大于20位")
    private String createUserName;

    @ApiModelProperty("操作模块")
    @Length(max = 10, message = "操作模块长度不能大于10位")
    private String module;

    @ApiModelProperty("操作类型")
    private LogTypeEnum typeEnum;

}
